const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/menu",
  name: "menu",
  component: Layout,
  redirect: "/menu",
  meta: {
    icon: "formkit:happy",
    title: "权限管理",
    rank: 0
  },
  children: [
    {
      path: "/menu",
      name: "menu",
      component: () => import("@/views/permission/menu/Menu.vue"),
      meta: {
        icon: "uiw:appstore-o",
        title: "菜单管理",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },{
      path: "/role",
      name: "role",
      component: () => import("@/views/permission/role/RoleList.vue"),
      meta: {
        icon: "ion:android-contact",
        title: "角色管理",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    }
  ]
} satisfies RouteConfigsTable;
